#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QDebug>
#include <string>
#include <iostream>
using namespace std;

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    
private slots:
    void on_btnChecksum_clicked();

    void on_btnSelectAll_clicked();

private:
    Ui::Widget *ui;
    bool    calculate(QString cadena);
    void    checksum(string &nmeaString);
};

#endif // WIDGET_H
